﻿using Hopscotch.Common.Contracts.EnqService;
using Microsoft.Practices.Prism.PubSubEvents;

namespace Hopscotch.Presentation.Communication.Events
{
    public class ConnectionChangedEvent : PubSubEvent<ConnectionChangedEvent>
    {
        public string ConnectionId { get; set; }

        public ConnectionState ConnectionState { get; set; }
        
        public bool IsConnected 
        {
            get { return this.ConnectionState == ConnectionState.Connected; }
        }
    }
}
